<?php
    include "./base.php";
    $mname = $_GET["mname"];
    $sql = "select * from movies where mingc like '%$mname%'";
    $query = mysql_query($sql);
    $arr = array();
    while($res = mysql_fetch_assoc($query)){
        array_push($arr,$res);
    }
    print_r(json_encode($arr));
?>